package com.i.me.login;

import android.annotation.SuppressLint;
import android.util.Log;

import com.i.me.MyService;
import com.i.me.login.entity.User;
import com.library.base.http.KoHttp;
import com.library.base.http.result.ApiResult;
import com.library.base.http.service.BaseService;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import io.reactivex.Scheduler;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Consumer;
import io.reactivex.schedulers.Schedulers;

public class LoginM {
    /**
     * 登录接口
     */
    @SuppressLint("CheckResult")
    public Observable<ApiResult<User>> login(String userName, String password) {
        return KoHttp.getService(MyService.class).login(userName,password);
    }
}
